import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from "element-ui"
import Antd from 'ant-design-vue'
import "element-ui/lib/theme-chalk/index.css"
import 'ant-design-vue/dist/antd.css';
import {download} from "@/utils/request";

router.beforeEach((to, from, next) => {
    if (to.meta.title) {
        document.title = to.meta.title;
    }
    next();
});
Vue.use(ElementUI, {size: "small"});
Vue.use(Antd)
Vue.config.productionTip = false
Vue.prototype.download = download
Vue.prototype.$config = {
    nginxPort: 8080, mapPath: "http://localhost:8080/gis/", //存放map瓦片地图的目录
    radarImage: "http://localhost:8080/gis/radar/",  //显示dbz图片
    rainImage: "http://localhost:8080/gis/rain/", //显示降水图片
    historyPath: "http://localhost:8080/gis/history/",//显示历史对比图片
    productPath: "http://localhost:8080/gis/products/", //二次产品存放路径
    ecImagePath: "http://localhost:8080/gis/ec/",  //默认预报结果
}
new Vue({
    router, store, render: h => h(App)
}).$mount('#app')
